# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := visioncontrol-jni
LOCAL_CFLAGS    := -Werror
#LOCAL_LDLIBS    := -llog -lGLESv2 -l:C:/workspace/VCModel/libs/armeabi/libvcmodel-jni.so
LOCAL_LDLIBS    := -llog -lGLESv2 -l:$(LOCAL_PATH)/../../VCModel/libs/armeabi/libvcmodel-jni.so

#this preprocessor is used to distinguish the opengl es and opengl source code
LOCAL_CPPFLAGS  := -D_ANDROID

#SG simple geometry library
LOCAL_SRC_FILES := src/Renderer.cpp
LOCAL_SRC_FILES += src/Singleton.cpp
LOCAL_SRC_FILES += src/Game.cpp
LOCAL_SRC_FILES += src/Material.cpp
LOCAL_SRC_FILES += src/MatSingleColor.cpp
LOCAL_SRC_FILES += src/RObject.cpp
LOCAL_SRC_FILES += src/stdafx.cpp

LOCAL_SRC_FILES += include/sg/ul.cpp
LOCAL_SRC_FILES += include/sg/sg.cpp
LOCAL_SRC_FILES += include/sg/sgIsect.cpp
LOCAL_SRC_FILES += include/sg/sgd.cpp
LOCAL_SRC_FILES += include/sg/sgdIsect.cpp

LOCAL_SRC_FILES += ex.cpp


LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../VCModel/jni/include
# LOCAL_C_INCLUDES += /lib/gcc/i686-pc-cygwin/3.4.4/include
# LOCAL_C_INCLUDES += /lib/gcc/i686-pc-cygwin/3.4.4/include/c++
# LOCAL_C_INCLUDES += /lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward
# LOCAL_C_INCLUDES += /lib/gcc/i686-pc-cygwin/3.4.4/include/i686-pc-cygwin
# LOCAL_C_INCLUDES += /usr/include
# LOCAL_C_INCLUDES += /usr/include/w32api


include $(BUILD_SHARED_LIBRARY)
